package com.hq.ims.data.interiorenum;


import com.hq.web.penum.IBaseEnum;

/**
 * 在java内部使用不存数据库
 */
public enum EnumDateType implements IBaseEnum {

    Seconds(0, "秒"),
    Minutes(1, "分"),
    Hour(2, "小时"),
    Day(3, "天"),
    Weeks(4, "周"),
    Month(5, "月"),
    Quarter(6, "季"),
    Year(7, "年")

    ;

    private final int code;

    private final String typeName;

    EnumDateType(int code, String typeName) {
        this.code = code;
        this.typeName = typeName;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return typeName;
    }

    public String getTypeName() {
        return typeName;
    }
}
